package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.EmpCardExample.E_COMPANY_ID;
import static org.jsola.hr.example.EmpCardExample.E_EMP_ID;
import static org.jsola.hr.example.EmpCardExample.E_NUMBER;
import static org.jsola.hr.example.EmpCardExample.E_PHOTO;
import static org.jsola.hr.example.EmpCardExample.E_SORT;
import static org.jsola.hr.example.EmpCardExample.E_TYPE;
import static org.jsola.hr.example.EmpCardExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.EmpCardExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.EmpCardExample.M_EMP_ID_MAX;
import static org.jsola.hr.example.EmpCardExample.M_NUMBER_MAX;
import static org.jsola.hr.example.EmpCardExample.M_PHOTO_MAX;
import static org.jsola.hr.example.EmpCardExample.N_COMPANY_ID;
import static org.jsola.hr.example.EmpCardExample.N_EMP_ID;
import static org.jsola.hr.example.EmpCardExample.N_NUMBER;
import static org.jsola.hr.example.EmpCardExample.N_PHOTO;
import static org.jsola.hr.example.EmpCardExample.N_SORT;
import static org.jsola.hr.example.EmpCardExample.N_TYPE;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【员工证件信息】的参数")
@Data
public class EmpCardAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_EMP_ID, example = E_EMP_ID)
    @Length(max = 32, message = M_EMP_ID_MAX)
    private String empId;

    @ApiModelProperty(notes = N_TYPE, example = E_TYPE)
    private Integer type;

    @ApiModelProperty(notes = N_NUMBER, example = E_NUMBER)
    @Length(max = 100, message = M_NUMBER_MAX)
    private String number;

    @ApiModelProperty(notes = N_PHOTO, example = E_PHOTO)
    @Length(max = 2000, message = M_PHOTO_MAX)
    private String photo;

    @ApiModelProperty(notes = N_SORT, example = E_SORT)
    private Integer sort;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;


}

